package FourArithmeticOperations;

/**
 * Created by dell on 2017/10/9.
 */
public class chazhao {
    public static void main (String[] args){
        Contact[] list = new Contact[10];
        list[0] = new Contact(3);
        list[1] = new Contact(8);
        list[2] =new Contact(12);
        list[3] = new Contact(34);
        list[4] = new Contact(54);
        list[5] = new Contact(84);
        list[6]= new Contact(91);
        list[7] = new Contact(110);
        list[8] = new Contact(20162328);
        Contact target = new Contact(54);
        Contact found = (Contact)Searching.binarySearch(list,target);
        if (found !=target)
            System.out.println("sorry");
        else
            System.out.println("ok");



    }
}
